<div class="view">
	<h4>
		<?php echo CHtml::link(CHtml::encode($data->name),array('product/view','id'=>$data->id));?>
	</h4>
	
	<div>
		<?php
		if($data->productPictures){
			$this->renderPartial('/productPicture/view', array(
					'defaultPictureModel' => $data->productPictures[0]
			));
		}else{
			echo CHtml::image(Yii::app()->baseUrl.'/protected/pictures/empty.jpg');
		}
		?>
	</div>

	<div><?php echo CHtml::encode($data->description); ?></div>
	<div><?php 
		echo CHtml::link('Product details', 
			array('product/view', 'id' => $data->id), 
			array('class' =>'product-details')
			); 
		?>
	</div>
	
	<?php /*
	<b><?php echo CHtml::encode($data->getAttributeLabel('category_id')); ?>:</b>
	<?php echo CHtml::encode($data->category_id); ?>
	<br />
	*/ ?>
<div style="float:right">

</div>
</div>
